import {action, observable} from "mobx";
import {rm_tabs} from "../../constants/form";
import {WeaLocaleProvider} from "ecCom";

const getLabel = WeaLocaleProvider.getLabel;

const { PROPS, SETTING, THEME } = rm_tabs;
  
export default class RightMenuStore {
  @observable tabs = [
    { key: PROPS, icon: 'property-fill', tip: getLabel('502993','组件属性') },
    { key: THEME, icon: 'theme-fill', tip: getLabel('0','表单样式') },
    //{ key: SETTING, icon: 'setting-fill', tip: getLabel('502995','表单设置'), disabled: true },
  ];
  @observable tabKey = PROPS;

  @action onTabChange = tabKey => {
    this.tabKey = tabKey;
  }
}